import Vue from 'vue'
import App from './App'
import store from './store/index.js'

import uView from 'uview-ui';
Vue.use(uView)

import utils from 'utils/utils.js'
Vue.prototype.$utils = utils
import config from 'common/config.js'
Vue.prototype.$config = config

import ws from 'utils/websocket.js'
Vue.prototype.$ws = ws

import clickOutside from "@/directive/clickOutside.js";
Vue.use(clickOutside)

Vue.config.productionTip = false

App.mpType = 'app'

const app = new Vue({
	store,
    ...App
})

import httpInterceptor from '@/common/http.interceptor.js'
Vue.use(httpInterceptor,app)

import httpApi from '@/common/http.api.js'
Vue.use(httpApi,app)

app.$mount()
